package com.shy.springframework.test.event;

import com.shy.springframework.context.ApplicationListener;
import com.shy.springframework.context.event.ContextClosedEvent;

public class ContextClosedEventListener implements ApplicationListener<ContextClosedEvent> {
    @Override
    public void onApplicationEvent(ContextClosedEvent event) {
        System.out.println("ApplicationContext: " + event.getApplicationContext() + "关闭成功");
    }
}
